body {
    background-color: #f0f5fa;
    font-family: 'Noto Sans SC', sans-serif;
    color: #2c3e50;
}

.container-fluid {
    padding: 20px 30px;
}

header {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 20px 0;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, minmax(400px, auto));
    gap: 20px;
    margin-bottom: 20px;
}

.grid-item {
    min-height: 400px;
}

.card {
    height: 100%;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: linear-gradient(to right, #f8f9fa, #e9f2f9);
    border-bottom: 1px solid #e0e6ed;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0 !important;
}

.card-header h5 {
    margin: 0;
    font-weight: 600;
    color: #3498db;
}

.card-body {
    padding: 20px;
}

.upload-container {
    width: 100%;
    min-height: 250px;
    border: 2px dashed #b8daff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.upload-container:hover {
    border-color: #3498db;
    background-color: rgba(52, 152, 219, 0.05);
}

.preview-container {
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.upload-placeholder {
    text-align: center;
    color: #6c757d;
    padding: 20px;
}

.upload-placeholder i {
    font-size: 48px;
    color: #b8daff;
    margin-bottom: 15px;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #e0e6ed;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.diagnosis-chart-container {
    height: 300px;
    margin: 15px 0;
    padding: 10px;
    background-color: white;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.progress {
    height: 25px;
    border-radius: 50px;
    background-color: #e9ecef;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.progress-bar {
    background-color: #3498db;
    border-radius: 50px;
    transition: width 0.3s ease;
}

.action-buttons {
    text-align: center;
    margin: 20px 0;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
}

.btn-outline-secondary:hover {
    transform: translateY(-2px);
}

#disease-info-content {
    height: 100%;
}

.disease-info {
    padding: 15px;
    border-radius: 10px;
    background-color: #f8f9fa;
    margin-bottom: 15px;
}

.disease-info h6 {
    color: #3498db;
    margin-bottom: 10px;
}

.risk-factors, .suggestions {
    list-style: none;
    padding-left: 0;
}

.risk-factors li, .suggestions li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
}

.risk-factors li:before {
    content: '⚠️';
    position: absolute;
    left: 0;
}

.suggestions li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ecc71;
}

@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .grid-item {
        min-height: 350px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

.eye-thumbnail {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #f0f0f0;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid #e9f2f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.eye-thumbnail:hover {
    transform: scale(1.05);
}

.eye-thumbnail img {
    max-width: 100%;
    max-height: 100%;
}

#diagnosis-result {
    font-size: 1.1rem;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
}

#status-message {
    margin-top: 10px;
    font-weight: 500;
    color: #3498db;
}

.highlight {
    background-color: #e2f3ff;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
    color: #2980b9;
}

/* 拖放区域高亮样式 */
.drag-over {
    border-color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
    transform: scale(1.01);
}

/* 按钮样式 */
.btn-success {
    background: linear-gradient(to right, #2ecc71, #27ae60);
    border: none;
    box-shadow: 0 4px 6px rgba(46, 204, 113, 0.2);
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(to right, #27ae60, #219653);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(46, 204, 113, 0.3);
}

.btn-secondary {
    background: linear-gradient(to right, #95a5a6, #7f8c8d);
    border: none;
    box-shadow: 0 4px 6px rgba(149, 165, 166, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(to right, #7f8c8d, #6c7a7a);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(149, 165, 166, 0.3);
}

/* 模态框样式 */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background: linear-gradient(to right, #3498db, #2c3e50);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-footer {
    border-top: 1px solid #e0e6ed;
    border-radius: 0 0 15px 15px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container-fluid {
        padding: 15px;
    }
    
    header {
        padding: 15px 0;
    }
    
    #image-preview-container {
        height: 300px;
    }
    
    .eye-thumbnail {
        width: 120px;
        height: 120px;
    }
}

/* 模态框样式优化 */
.modal-dialog {
    max-width: 800px;
}

.modal-body {
    max-height: calc(100vh - 210px);
    overflow-y: auto;
    padding: 20px;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 结果卡片样式 */
.result-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.result-card .card-body {
    padding: 15px;
}

/* 图表容器样式 */
.chart-container {
    height: 300px;
    margin: 15px 0;
}

/* Tab样式 */
.nav-tabs {
    border-bottom: 2px solid #e0e6ed;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: #3498db;
}

.nav-tabs .nav-link.active {
    border: none;
    color: #3498db;
    position: relative;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3498db;
}

/* 上传容器样式 */
.folder-upload-container {
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
}

.folder-upload-container i {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 15px;
}

.folder-upload-container.selected {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.folder-upload-container .bi-folder-check {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* 批量处理开关样式 */
.form-switch .form-check-input {
    width: 3em;
}

.form-switch .form-check-input:checked {
    background-color: #3498db;
    border-color: #3498db;
}

/* 拖放状态样式 */
.upload-container.drag-over {
    border-color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

/* 批量模式提示样式 */
.batch-mode-info {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .upload-container {
        min-height: 200px;
    }
    
    .preview-container,
    .folder-upload-container {
        height: 200px;
    }
}

/* 警告提示样式 */
.toast-alert {
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInRight 0.3s ease forwards;
}

.toast-alert.alert-warning {
    border-left-color: #ffc107;
}

.toast-alert.alert-danger {
    border-left-color: #dc3545;
}

.toast-alert.alert-success {
    border-left-color: #28a745;
}

.toast-alert.alert-info {
    border-left-color: #17a2b8;
}

/* 警告提示动画 */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.toast-alert.fade.hide {
    animation: fadeOut 0.3s ease forwards;
}

/* AI聊天相关样式 */
.chat-message {
    position: relative;
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 10px;
    max-width: 80%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-message {
    background-color: #e9f2f9;
    color: #2c3e50;
    margin-left: auto;
    border-top-right-radius: 2px;
}

.ai-message {
    background-color: #f0f5fa;
    color: #2c3e50;
    margin-right: auto;
    border-top-left-radius: 2px;
}

.system-message {
    background-color: #f8f9fa;
    color: #6c757d;
    text-align: center;
    margin: 10px auto;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* 输入指示器动画 */
.typing-dots span {
    opacity: 0;
    animation: typingDot 1.4s infinite;
    animation-fill-mode: forwards;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* 停止生成按钮样式 */
#stop-generation {
    background-color: #dc3545;
    border-color: #dc3545;
}

#stop-generation:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* 流式生成动画 */
.ai-response {
    display: inline;
}

/* 打字光标动画 */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 16px;
    background-color: #333;
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
} 